/*
 * rgbled.h
 *
 *  Created on: 24-10-2012
 *      Author: Skeith
 */

#ifndef RGBLED_H_
#define RGBLED_H_

#include "../Startup/general.h"
#include "../Startup/lpc2xxx.h"

#define LED_PINS (1 << 19 | 1 << 20 | 1 << 21)
#define LED_IODIR (LED_PINS)

#define LED_R (1 << 19)
#define LED_G (1 << 21)
#define LED_B (1 << 20)

enum LED_COLOR
{
	RED = 1,
	GREEN = 2,
	BLUE = 4
};

void LedInit(void);
void LedClr(void);
void LedSet(enum LED_COLOR led);
void LedTest(void);



#endif /* RGBLED_H_ */
